package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author zhmwi
 * @Date 2021/9/4
 * @Dersciption
 */
public interface SupplierDao {

    //分页查询供应商
    List<Supplier> selectSupplierList(@Param("supplierName") String supplierName);

    //新增供应商
    boolean saveSupplier(Supplier supplier);

    //批量删除供应商
    boolean delete(String id);

    //更新供应商
    Boolean update(Supplier supplier);

    //模糊查询供应商名称
    List<Supplier> selectComboboxList(@Param("q") String q);
}
